# coding=utf-8
class Ecode:
    SUCCESS = 0
    FAILED = 1
    PARAMS_LOST = 1001

    def getEcodeStr(self, code):
        codeList = {
            self.SUCCESS: 'success',
            self.FAILED: 'failed',
            self.PARAMS_LOST: 'params is lost'
        }
        return codeList[code]
